﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:WP_Customer_ShopMob"
    x:Class="WP_Customer_ShopMob.Views.LogPage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" OrientationChanged="PhoneApplicationPage_OrientationChanged_1"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.Resources>
        <Color x:Key="Color1">#BFF10C0C</Color>
    </phone:PhoneApplicationPage.Resources>

    <Grid x:Name="LayoutRoot" Background="Black">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" MinHeight="204"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <!--TitlePanel contient le nom de l'application et le titre de la page-->
        <StackPanel Grid.Row="0" Margin="0,0,0,0" RenderTransformOrigin="0.502,0.508">
            <StackPanel Background="White" Margin="0,0,0,10" Height="111">
                <Image Source="/shopmob.png" Height="117" Margin="104,0" />
                <Rectangle Fill="#FF0A8DD8" HorizontalAlignment="Left" Height="6" Margin="-1,-10,0,0" Stroke="Transparent" VerticalAlignment="Top" Width="485"/>
            </StackPanel>

            <TextBlock Text="Connexion" Margin="10,0,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="60" FontFamily="Eras Demi ITC" Foreground="#FF0A8DD8" Height="83" HorizontalAlignment="Left" Width="470" RenderTransformOrigin="0.501,0.455"/>
        </StackPanel>

        <ScrollViewer x:Name="ContentPanel" Grid.Row="1" Margin="12,10,12,0" d:DataContext="LogViewModel">
            <StackPanel Grid.Row="0" Margin="12,17,0,28" >
                <TextBlock Text="Login" Style="{StaticResource PhoneTextNormalStyle}">
                    <TextBlock.Foreground>
                        <ImageBrush Stretch="Fill"/>
                    </TextBlock.Foreground>
                </TextBlock>
                <TextBox Height="72" TextWrapping="Wrap" Name="txt_login" Text="{Binding login}" Background="#BFFFFFFF"  />
                <TextBlock Text="Mot de passe" Style="{StaticResource PhoneTextNormalStyle}" Foreground="White"/>
                <PasswordBox Height="72" Name="txt_password" Background="#BFFFFFFF" />
                <CheckBox x:Name="ckb_remember" Content="Remember me ?" Foreground="White" Background="#BFFFFFFF" />
                <Button x:Name="btn_valide" Content="Valider" Click="btn_valider" Background="Black" Foreground="White"/>
                <Button x:Name="btn_inscription" Content="S'inscrire sur ShopMob" Click="btn_inscrire" Background="Black" Foreground="White"/>
            </StackPanel>
        </ScrollViewer>
    </Grid>

</phone:PhoneApplicationPage>